﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using InStep.eDNA.EzDNAApiNet;

public partial class ednaview_trend : System.Web.UI.Page
{
    protected string extendDescription = "";
    protected string extendId = "";
    protected string extendUnit = "";

    protected void Page_Load(object sender, EventArgs e)
    {
        string req = Request["Tag1"];
      
        if (req != "")
        {
            RealTime.DNAGetRTDesc(req, out extendDescription);
            RealTime.DNAGetRTUnits(req, out extendUnit);
            
            //string[] parts = req.Split(new char[] { '.' });
            //InStep.eDNA.EzDNAApiNet.Configuration.ExtendedIdFromShortId(req, out extendId);
            //extendId = parts[0] + "." + parts[1] + "." + extendId;
        }
    }

//      string fd = DateTime.Now.AddDays(-5).ToString();
//        string ld = DateTime.Now.AddDays(-1).ToString();
////        string url = "ednaview_trend.aspx?NumValues=1&Tag1=WHSIS.UNIV.ZBAV252B&StartTime=" + fd + "'&EndTime=" + ld + "'&Limits=False&LowerLimit=0&UpperLimit=0'";
//        string url = "ednaview_trend.aspx?NumValues=1&Tag1=WHSIS.U2APSH.U2A00005&StartTime=" + fd + "'&EndTime=" + ld + "'&Limits=False&LowerLimit=0&UpperLimit=0'";
//        Response.Redirect(url);
}
